package com.example.element.Utils;

import com.alibaba.android.arouter.launcher.ARouter;

public class RouterControl {

    public static final String FRAGMENT_LIFECYCLE = "/fragment/lifecycle";
    public static final String FRAGMENT_NEW_ACTIVITY = "/fragment/newActivity";

    public static void jumpFragLifecycle() {
        ARouter.getInstance().build(FRAGMENT_LIFECYCLE).navigation();
    }

    public static void jumpFragNewActivity() {
        ARouter.getInstance().build(FRAGMENT_NEW_ACTIVITY).navigation();
    }

    public static void jumpEventsHome() {
        ARouter.getInstance().build("/events/home").navigation();
    }

    public static void jumpIpc() {
        ARouter.getInstance().build("/ipc/client").navigation();
    }

    public static void jumpLifecycleHome() {
        ARouter.getInstance().build("/lifecycle/home").navigation();
    }

    public static void jumpPermissionHome() {
        ARouter.getInstance().build("/permission/home").navigation();
    }

    public static void jumpMaterialToolbar() {
        ARouter.getInstance().build("/material/toolbar").navigation();
    }
}
